import request from '@/utils/request'

const MenuApi = {
  routes: () => request.get('/menu/routes'),

  menus: () => request.get('/menu/menus'),

  components: () => request.get('/menu/components'),

  options: () => request.get('/menu/options'),
  getInfo: (id) => request.get(`/menu/${id}`),

  addMenu: (menuDto) => request.post('/menu/add', menuDto),

  editMenu: (menuDto) => request.put('/menu/edit', menuDto),


  deleteMenu: (id) => request.delete(`/menu/del/${id}`)
}

export default MenuApi
